<template>
    <div class="bottomBar">
        <van-tabbar v-model="active">
            <van-tabbar-item to="/mainpage" icon="home-o">首页</van-tabbar-item>
            <van-tabbar-item to="/mainpagemedicine" icon="search">找中药</van-tabbar-item>
            <van-tabbar-item to="/mainpagemedicine2" icon="send-gift-o">找方剂</van-tabbar-item>
            <van-tabbar-item to="/setting" icon="setting-o">设置</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
  data() {
    return {
      active: 0,
    };
  },
};
</script>